package com.rw;

import com.rw.pojo.ParamInfo;
import com.rw.pojo.Result;
import com.rw.test.RoundInterface;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.xml.transform.Source;

public class TestRound {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationcontext.xml");
        RoundInterface ri = (RoundInterface) ac.getBean("roundInterface");
        ParamInfo paramInfo = new ParamInfo("李四",28);
       // ri.printInfo(paramInfo);
        Result res = (Result) ri.printInfo("张三",20);
        System.out.println(res);

      //  ri.printInfo();
    }
}
